<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0" />
        <title>index</title>
        <link rel="stylesheet" href="Semantic-UI-CSS-master/semantic.min.css"/>
        <link rel="stylesheet" href="css/me.css"/>
	</head>
	<body>
        <div class="bbb">
        <!-- 导航 -->
        <nav class="ui inverted attach segment m-padded-tb-min">
           <div class="ui container">
             <div class="ui inverted secondary stackable menu">
                 <h2 class="ui teal header item">Blog</h2>
                 <a href="/index" class="item m-item m-mobile-hide"><i class="home icon"></i>首页</a>
                 <a href="/type" class="item m-item m-mobile-hide"><i class="idea icon"></i> 分类</a>
                 <a href="/tag" class="item m-item m-mobile-hide"><i class="tags icon"></i> 标签</a>
                 <a href="/achives" class="item m-item m-mobile-hide"><i class="tags icon"></i> 归档</a>
                 <a href="/about" class="item m-item m-mobile-hide"><i class="info icon"></i> 关于我</a>
                <div class="right item">
                    <form name="search" th:action="@{/search}" method="post" >
                        <div class="ui icon inverted transparent input">
                            <input type="text" name="query" placeholder="查找..."/>
                            <i onclick="document.forms['search'].submit()" class="search link icon"></i>
                        </div>
                    </form>

                </div>
             </div>  
           </div>
           <a href="#" class="ui menu toggel black icon button m-right-top m-mobile-show">
               <i class="sidebar icon"></i>
           </a>
        </nav>
        <!-- 中间内容 -->
        <div class="m-padded-tb-lager m-container">
            <div class="ui container">
                <div class="ui stackable grid">
                    <!-- 左边内容，博客列表 -->
                    <div class="eleven wide column">
                        <div class="ui top attached segment">
                            <div class="ui middle aligned two column grid">
                                <div class="column">
                                    <h3 class="ui teal header">博客</h3>
                                </div>
                                <div class="right aligned column">
                                    共<h2 class="ui orange header m-inline-block m-text-thin" th:text="${page.totalElements}">14</h2>篇
                                </div>
                            </div>
                        </div>
                        <!--  content-->
                        <div class="ui attached segment">
                            <div class="ui padded vertical segment m-padded-tb-big">
                                <div class="ui mobile reversed stackable grid" th:each="blog:${page.content}">
                                    <div class="eleven wide column">
                                        <h3 class="ui header"><a  th:href="@{/blog/{id}(id=${blog.id})}" th:text="${blog.title}">你真的了解什么是财务自由吗</a> </h3>
                                        <p th:text="${blog.description}">正确做好任何一件事情，正确的理解自我，而事实是我们很多人很多时候没有正确定义自我认识。
                                        正确做好任何一件事情，正确的理解自我，而事实是我们很多人很多时候没有正确定义自我认识。
                                        正确做好任何一件事情，正确的理解自我，而事实是我们很多人很多时候没有正确定义自我认识。
                                        </p>
                                    <div class="ui grid">
                                        <div class="eleven wide column">
                                            <div class="ui horizontal link list">
                                                <div class="item">
                                                    <img class="ui avatar image" src="../img/logo-icon-3.png" style="height: 40px;"/>
                                                    <div class="content"><a href="#" th:text="${blog.user.nickname}" class="header">韦建韩</a></div>
                                                    
                                                </div>
                                                <div class="item">
                                                    <i class="calendar icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2020-02-03</span>
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i><span th:text="${blog.views}">1314</span>
                                                </div>
                                            </div>
                                            
                                        </div>
                                        <div class="right aligned five wide column">
                                            <a href="#" target="_blank" class="ui button teal basic label m-padded-min" th:text="${blog.type.name}">认知升级</a>
                                        </div>
                                    </div>

                                </div>
                                    <div class="five wide column">
                                        <a href="#" target="_blank">
                                            <img src="../img/logo-icon-3.png" class="ui rounded image m-img-mid" />
                                        </a>
                                    </div>
                                    <hr width="100%">
                            </div>


                        </div>
                        <!-- buttom -->
                        <div class="ui attached segment" th:if="${page.totalPages}>1">
                            <div class="ui middle aligned two column grid">
                                <div class="left aligned column">
                                  <a th:href="@{/index(page=${page.number-1})}" th:unless="${page.first}" class="ui mini teal basic button">上一页</a>
                                </div>
                                <div class="right aligned column">
                                   <a th:href="@{/index(page=${page.number+1})}" th:unless="${page.last}" class="ui mini teal basic button">下一页</a>
                                </div>
                            </div>
                            
                        </div>
                    </div>
                    </div>
                    <!-- 右边内容 -->
                    
                    <div class="five wide column">
                        <!-- 分类 -->
                        <div class="ui segment">
                           <div class="ui secondary segment">
                               <div class="ui two column grid">
                                   <div class="column">
                                       <i class="idea icon"></i>分类
                                   </div>
                                   <div class="right aligned column">
                                       <a href="#" target="_blank">more</a><i class="angle double right icon"></i>
                                   </div>
                               </div>
                           </div> 
                            <div class="ui teal segment">
                                <div class="ui fluid vertical menu">

                                    <a href="#" class="item" th:each="type:${types}">
                               <span th:text="${type.name}"></span>
                                    <div class="ui teal basic left pointing label" th:text="${#arrays.length(type.blog)}">13</div>
                                </a>

                                </div>
                            </div>
                        </div>
                  <!-- 标签 -->
                  <div class="ui segment">
                      <div class="ui secondary segment">
                          <div class="ui two column grid">
                              <div class="column">
                                  <i class="tags icon"></i>标签
                              </div>
                              <div class="right aligned column">
                                  <a href="#" target="_blank">more</a>
                                  <i class="angle double right icon"></i>
                              </div>
                          </div>
                      </div>
                      <div class="ui teal segment">
                          <a class="ui teal basic label m-margin-tb-tiny" href="#" target="_blank" th:each="tag:${tags}" >
                              <span th:text="${tag.name}"></span>
                              <div class="ui teal basic left pointing label" th:text="${#arrays.length(tag.blog.size())}">23</div>
                          </a>

                      </div>
                  </div>
                  <!-- 最新推荐 -->
                  <div class="ui segment">
                      <div class="ui secondary segment" >
                        
                                  <i class="bookmark icon"></i>推荐
                              </div>
                              <div class="ui segment" th:each="blog:${recommendBlogs}">
                                  <a class="m-text-thin" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" th:text="${blog.title}">最新的内容</a>
                              </div>

                              </div>
                             
                  <!-- 二维码 -->
                  <h4 class="ui horizontal divider header">扫码关注我</h4>
                  <div class="ui centered card">
                      <img src="../img/wv.jpg" style="width: 150px;margin-left: 20%;" class="ui rounded iamge" />
                  </div>
                    </div>
                </div>
            </div>
           
        </div>
        <!-- 底部footer -->
        <footer class="ui inverted vertical segment m-padded-tb-massive">
            <div class="ui center aligned container">
                <div class="ui inverted divided stackable grid">
                 <div class="three wide column">
                     <img src="../img/logo-icon-3.png" class="ui rounded image" alt="" style="width: 110px;"/>
                 </div>
                 <div class="three wide column">
                     <h4 class="ui inverted header">最新博客</h4>
                     <div class="ui inverted link list">
                         <a href="#" class="item">用户故事(User Story)</a>
                         <a href="#" class="item">用户故事(User Story)</a>
                         <a href="#" class="item">用户故事(User Story)</a>
                     </div>
                 </div>
                 <div class="three wide column"><h4 class="ui inverted header">联系我</h4>
                     <div class="ui inverted link list">
                         <a href="#" class="item">手机：17877887975</a>
                         <a href="#" class="item">QQ:2805319253</a>
                         <a href="#" class="item">邮箱：2805319253@qq.com</a>
                     </div></div>
                 
                 <div class="seven wide column">
                     <h4 class="ui inverted header">简介</h4>
                     <p>这是我的个人博客，我会与大家分享我的各种学习体会。</p>
                 </div>
                 
                </div>
                <div class="ui inverted section divider"></div>
               <p>韦建韩 就读于广西科技大学-启迪数字学院-软件工程专业</p>
                </div>
        </footer>
          <script src="Semantic-UI-CSS-master/jquery.js"></script>
        <script src="Semantic-UI-CSS-master/semantic.min.js"></script>
      
        <script>
            $(".menu.toggle").click(function(){
                $(".m-item").toggleClass("m-mobile-hide");
            });
        </script>
    </body>
</html>
